# !/bin/sh 
ls
echo "which data file?"
read name
echo "which output file? Dont use an extension"
read output
echo "will attempt $name"
gnuplot << EOF 
    set title "$name" 
    set xlabel "Number of Guassian Mixtures"
    set ylabel "Error Rate"
    set term pdf  
    set output "$output.pdf"
    plot "$name" using 1:2 with linespoints pointtype 5 ti "Error Rate"
EOF

evince $output.pdf &
